import java.util.Scanner;

public class ForLoop {
	
	static public String[] questions = new String[6];
	static public String[][] answers = new String[6][6];

	static void populateQuestions() {  
		questions[0] = "What is your favorite color?";
		questions[1] = "What is your favorite animal?";
		questions[2] = "What is your favorite thing to do?";
		questions[3] = "What is your favorite Yugioh card?";
		questions[4] = "What is 365 * 26 / 3?";
		questions[5] = "What is your favorite BeyBlade";
	}
	
	static void populateAnswers() {
		answers[0][0] = "0";
		answers[0][1] = "Red";
		answers[0][2] = "Blue";
		answers[0][3] = "Purple";
		answers[0][4] = "Green";

		answers[1][0] = "1";
		answers[1][1] = "Lion";
		answers[1][2] = "Horse";
		answers[1][3] = "Tiger";
		answers[1][4] = "Shark";

		answers[2][0] = "2";
		answers[2][1] = "Play";
		answers[2][2] = "Eat";
		answers[2][3] = "Watch TV";
		answers[2][4] = "Work";

		answers[3][0] = "3";
		answers[3][1] = "Gyroid";
		answers[3][2] = "Exodia";
		answers[3][3] = "Babycerasaurus";
		answers[3][4] = "Marshmallon";

		answers[4][0] = "4";
		answers[4][1] = "1";
		answers[4][2] = "9";
		answers[4][3] = "3163";
		answers[4][4] = "2";
		
		answers[5][0] = "5";
		answers[5][1] = "Striker";
		answers[5][2] = "Leone";
		answers[5][3] = "Pegasus";
		answers[5][4] = "Libra";

	}
	
	public static void main(String [] args) {
		int z;
		String userInput;
		int score = 0;
		
		populateQuestions();
		populateAnswers();
		Scanner in = new Scanner(System.in);
		
		for (int i=0; i < 6; i++) {
			z = i + 1;
			System.out.println("Question #" + z + ":" + questions[i]);
			System.out.println(" a " + answers[i][1] + "\n b " + answers[i][2] + "\n c " + answers[i][3] + "\n d " + answers[i][4]);
			userInput = in.nextLine();
			if ( userInput.equals("a") ) {
				System.out.println("Wrong, the correct answer was C");
				score = score + 10;
			}	
			if ( userInput.equals("b") ) {
				System.out.println("Wrong, the correct answer was C");
				score = score + 20;
			}	
			if ( userInput.equals("c") ) {
				System.out.println("Great Answer");
				score = score - 10000;
			}	
			if ( userInput.equals("d") ) {
				System.out.println("Wrong, the correct answer was C");
				score = score - 10;
			}	
		}
		System.out.println("Your score is: " + score);
	}
}

